class TaskListEntity {
  int code;
  TaskListData data;
  String message;

  TaskListEntity({this.code, this.data, this.message});

  TaskListEntity.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    data =
        json['data'] != null ? new TaskListData.fromJson(json['data']) : null;
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['message'] = this.message;
    return data;
  }
}

class TaskListData {
  List<TaskListDataResult> result;
  int totalPage;
  List<TaskListDataPlat> plat;
	TaskListDataIsZb isZb;

  TaskListData({this.result, this.totalPage, this.plat, this.isZb});

  TaskListData.fromJson(Map<String, dynamic> json) {
    if (json['result'] != null) {
      result = new List<TaskListDataResult>();
      (json['result'] as List).forEach((v) {
        result.add(new TaskListDataResult.fromJson(v));
      });
    }
    totalPage = json['totalPage'];
    isZb = json['is_zb'] != null
        ? new TaskListDataIsZb.fromJson(json['is_zb'])
        : null;
    if (json['plat'] != null) {
      plat = new List<TaskListDataPlat>();
      (json['plat'] as List).forEach((v) {
        plat.add(new TaskListDataPlat.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['totalPage'] = this.totalPage;

		if (this.isZb != null) {
			data['is_zb'] = this.isZb.toJson();
		}
    if (this.plat != null) {
      data['plat'] = this.plat.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class TaskListDataResult {
  String timeEnd;
  String remainNum;
  String categoryName;
  String timeAudit;
  String pic;
  String type;
  String exampic;
  String timeCn;
  String taskStart;
  String price;
  String tagsList;
  String name;
  String priceGoods;
  String id;
  String zb;
  List<String> info;

  TaskListDataResult(
      {this.timeEnd,
      this.remainNum,
      this.categoryName,
      this.timeAudit,
      this.pic,
      this.type,
      this.exampic,
      this.timeCn,
      this.taskStart,
      this.price,
      this.tagsList,
      this.name,
      this.priceGoods,
      this.id,
      this.zb,
      this.info});

  TaskListDataResult.fromJson(Map<String, dynamic> json) {
    timeEnd = json['timeEnd'];
    remainNum = json['remainNum'];
    categoryName = json['category_name'];
    timeAudit = json['timeAudit'];
    pic = json['pic'];
    type = json['type'];
    exampic = json['exampic'];
    timeCn = json['timeCn'];
    taskStart = json['task_start'];
    price = json['price'];
    tagsList = json['tagsList'];
    name = json['name'];
    priceGoods = json['priceGoods'];
    id = json['id'];
    zb = json['zb'];
    info = json['info']?.cast<String>();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['timeEnd'] = this.timeEnd;
    data['remainNum'] = this.remainNum;
    data['category_name'] = this.categoryName;
    data['timeAudit'] = this.timeAudit;
    data['pic'] = this.pic;
    data['type'] = this.type;
    data['exampic'] = this.exampic;
    data['timeCn'] = this.timeCn;
    data['task_start'] = this.taskStart;
    data['price'] = this.price;
    data['tagsList'] = this.tagsList;
    data['name'] = this.name;
    data['priceGoods'] = this.priceGoods;
    data['id'] = this.id;
    data['zb'] = this.zb;
    data['info'] = this.info;
    return data;
  }
}

class TaskListDataPlat {
  String name;
  String id;
  int type;

  TaskListDataPlat({this.name, this.id, this.type});

  TaskListDataPlat.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    id = json['id'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['id'] = this.id;
    data['type'] = this.type;
    return data;
  }
}

class TaskListDataIsZb {
  int zbtype;
  String zbtime;

  TaskListDataIsZb({this.zbtype, this.zbtime});

  TaskListDataIsZb.fromJson(Map<String, dynamic> json) {
    zbtype = json['zbtype'];
    zbtime = json['zbtime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['zbtype'] = this.zbtype;
    data['zbtime'] = this.zbtime;
    return data;
  }
}
